package the.workshop.bu.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.wisteria.framework.web.mvc.entity.SuperEntity;

import java.math.BigDecimal;

/**
 * <p>
 * 产品
 * </p>
 *
 * @author lei.liu
 * @since 2020-06-24
 */
@Data
@TableName("bu_product")
public class Product extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 产品名称
     */
    @TableField("name")
    private String name;

    /**
     * 银行名称
     */
    @TableField("bank_name")
    private String bankName;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 产品LOGO
     */
    @TableField("logo")
    private String logo;

    @TableField("product_type")
    private Integer productType;

    @TableField("interest_year")
    private String interestYear;

    @TableField("quota")
    private String quota;

    @TableField("register_day")
    private Integer registerDay;

    @TableField("legal_person_change")
    private Integer legalPersonChange;

    @TableField("legal_person_age_start")
    private Integer legalPersonAgeStart;

    @TableField("legal_person_age_end")
    private Integer legalPersonAgeEnd;

    @TableField("legal_person_share")
    private String legalPersonShare;

    @TableField("if_shareholder")
    private Integer ifShareholder;

    @TableField("tax_level")
    private String taxLevel;

    /**
     * 纳税状态是否正常
     */
    @TableField("if_tax_status")
    private Integer ifTaxStatus;

    /**
     * 企业历史是否有欠税记录
     */
    @TableField("if_tax_arrears_history")
    private Integer ifTaxArrearsHistory;

    /**
     * 企业纳税时长（月）
     */
    @TableField(value = "tax_duration", updateStrategy = FieldStrategy.IGNORED)
    private Integer taxDuration;

    /**
     * 企业近1年应税销售收入（万）
     */
    @TableField(value = "tax_sales_year", updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal taxSalesYear;

    /**
     * 开票时长（月）
     */
    @TableField(value = "invoice_duration", updateStrategy = FieldStrategy.IGNORED)
    private Integer invoiceDuration;

    /**
     * 近1年开票月数
     */
    @TableField(value = "invoice_count_year", updateStrategy = FieldStrategy.IGNORED)
    private Integer invoiceCountYear;

    @TableField("payment_way")
    private String paymentWay;

    @TableField(value = "invoice_year_start", updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal invoiceYearStart;

    @TableField(value = "invoice_year_end", updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal invoiceYearEnd;

    @TableField("load_wait")
    private String loadWait;

    @TableField("if_checking_tel")
    private Integer ifCheckingTel;

    @TableField("checking_tel_start")
    private String checkingTelStart;

    @TableField("load_account")
    private String loadAccount;

    @TableField("weekend_checking")
    private String weekendChecking;

    @TableField("load_bank")
    private String loadBank;

    @TableField("payment_pre_fee")
    private String paymentPreFee;

    @TableField("if_self_employed")
    private Integer ifSelfEmployed;

    @TableField("notice")
    private String notice;

    @TableField("payment_time_limit")
    private String paymentTimeLimit;

    @TableField("payment_due")
    private String paymentDue;
    @TableField("entry_way")
    private String entryWay;

    @TableField("access_requirement")
    private String accessRequirement;
    @TableField("area_remark")
    private String areaRemark;
    @TableField("forbid_trade")
    private String forbidTrade;
    @TableField("credit_checking")
    private String creditChecking;
    @TableField("apply_action")
    private String applyAction;
    @TableField("apply_process")
    private String applyProcess;
    @TableField("apply_file")
    private String applyFile;
    @TableField("attention")
    private String attention;
    @TableField("faq")
    private String faq;

    @TableField("qr")
    private String qr;
    private Integer serial;
}
